/*
package com.mikasa.springboot.example.rabbitmq.service;

import com.alibaba.fastjson.JSON;
import com.mikasa.springboot.example.rabbitmq.config.RabbitmqQueue;
import com.mikasa.springboot.example.rabbitmq.content.ContractRabbitmq;
import com.mikasa.springboot.example.rabbitmq.content.TenantRabbitmq;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

*/
/**
 * Created by User on 17/1/16.
 *//*


@Service
public class ReceiverService {

    @RabbitListener(queues = RabbitmqQueue.CONTRACE_SELF)
    public void receiveContractQueue(ContractRabbitmq contract) {
        System.out.println("Received contract<" + JSON.toJSONString(contract) + ">");
    }

    @RabbitListener(queues = RabbitmqQueue.CONTRACE_TENANT)
    public void receiveTenantQueue(TenantRabbitmq tenant) {
        System.out.println("Received Bar<" + JSON.toJSONString(tenant) + ">");
    }
}
*/
